package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/4/2 19:06
 */
public class TestTwoArray2 {
    public static void main(String[] args) {
        //声明一个二维数组
        int[][] arr = { {1,2},{1,2,3},{1,2,3,4,5} };

        //遍历二维数组
        System.out.println(arr.length);
        System.out.println(arr[0].length);
        System.out.println(arr[1].length);
        System.out.println(arr[2].length);
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+"\t");
            }
            System.out.println();
        }

    }
}
